import { createBrowserRouter } from "react-router-dom";
import Login from "../pages/Login/";
import GeekLayout from "../pages/Layout";
import NotFound from "../pages/NotFound";
import AuthRoute from "@/components/AuthRoute";
import My from "@/pages/My";
const router = createBrowserRouter([
  {
    path: "/",
    element: <Login />,
  },
  {
    path: "/layout",
    element: <AuthRoute element={<GeekLayout />} />,
  },
  { path: "/my", element: <My /> },
  {
    path: "*",
    element: <NotFound />,
  },
]);

export default router;
